package com.study.d2_reflect;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student{
    private String name;
    private int age;
    private  char gender;
    private double height;
    private void run(){
        System.out.println("running");
    }
    public void eat(){
        System.out.println("爱吃猫粮");
    }
    public String eat(String id){
        System.out.println(id+"爱吃猫粮111");
        return id+"爱吃猫粮";
    }
}
